<div class="pageContent">
    <form action="__URL__/update/navTabId/{:CONTROLLER_NAME}" id="j_custom_form" class="pageForm form-validate" method="post" callback="dialogAjaxDone" noEnter>
     
		<input type="hidden" name="id" value="{$vo.id}" />
        <div class="pageFormContent form-horizontal" layouth="60">
            <div class="form-group">
                <label for="j_name" class="control-label col-sm-2 ">分类名：</label>
                <input type="text" class="form-control validate[required,minSize[3]] required" size="30" name="name" id="j_name" value="{$vo.name}"  >
            </div>
            
         
            <div class="form-group">
                <label for="j_pid" class="control-label col-sm-2">上级分类：</label>
                <select name="pid"  data-container="body"  id="j_pid" class="selectpicker show-tick" data-style="btn-default btn-sm" data-width="auto">
                                 <option value="0">无</option>
                      <volist name="list" id="info">
                                 <option value="{$info.id}" <if condition="$vo['pid'] eq $info['id']" >selected</if>>{$info.name}</option>
                                
                      </volist>
                 </select>
                 
            </div>
            <div class="form-group">
                <label for="j_status" class="control-label col-sm-2">状态：</label>
               <select name="status"  data-container="body"  id="j_status" class="selectpicker show-tick" data-style="btn-default btn-sm" data-width="auto">
                               
                                 <option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
                                <option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
                 </select>
            </div>
                        <div class="form-group">
                <label for="j_enable" class="control-label col-sm-2">会员权限：</label>
               <select name="enable"  data-container="body"  id="j_enable" class="selectpicker show-tick" data-style="btn-default btn-sm" data-width="auto">
                               
                                 <option <eq name="vo.enable" value="1" >selected</eq> value="1">会员可发布</option>
                                <option <eq name="vo.enable" value="0" >selected</eq> value="0">会员禁止发布</option>
                 </select>
            </div>
            <div class="form-group">
                <label for="j_type" class="control-label col-sm-2">类型：</label>
               <select name="type"  data-container="body"  id="j_type" class="selectpicker show-tick" data-style="btn-default btn-sm" data-width="auto">
                       <option value="{:S('catetype')}">{:get_cate_type(S('catetype'))}</option>
                                
                 </select>
            </div>
           
		</div>
		<div class="formBar">
            <ul>
                <li><button type="submit" class="btn btn-primary btn-sm">保存</button></li>
                <li><button type="button" class="btn btn-close btn-sm">取消</button></li>
            </ul>
		</div>
    </form>
</div>